package ShenBlueInc.Center;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;

import ShenBlueDao.StatisticalDao;
import ShenBlueInc.Sql.Statistical_inc;

public class Statistical_Center {
	Statistical_inc inc=new Statistical_inc();
	public LinkedList<StatisticalDao> MonthData(String user_id){
		LinkedList<StatisticalDao> list=new LinkedList<StatisticalDao>();
		ResultSet rs=inc.MonthData(user_id);
		try {
			while(rs.next()) {
				StatisticalDao Dao=new StatisticalDao(rs.getString(1),rs.getString(2));
				list.add(Dao);
			}
			return list;
		} catch (SQLException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
		return null;
	}
}
